package com.xiegang.serviceMap.service;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.internalcommon.response.TerminalResponse;
import com.xiegang.serviceMap.remote.TerminalClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xieGang
 * @description
 * @date 2023/4/5 11:26
 **/

@Service
public class TerminalService {

    @Autowired
    private TerminalClient terminalClient;
    public ResponseResult add(String name,String desc){
        return  terminalClient.add(name,desc);
    }

    public ResponseResult<List<TerminalResponse>> aroundSearch(String center, Integer radius){
        return terminalClient.aroundSearch(center,radius);
    }
}
